<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>重庆邮电大学</title>
<style>
*{padding: 0px; margin: 0px;}
html, body{font-size: 12px; color: #000000; /*text-align: center; */font-family: "simsun"; line-height: 18px; margin:0px auto;}
html { height: 100%; min-height: 500px; _height:500px; }
body { height: 100%;}

ol,ul,li{list-style:none; margin: 0px; padding: 0px; }

h1,h2,h3,h4,h5,font{ font-size: 12px;}

a:link    {font-size: 12px; color: #000000; text-decoration: none; border:none;}
a:visited {font-size: 12px; color: #000000; text-decoration: none; border:none;}
a:hover   {font-size: 12px; color: #000000; text-decoration: underline; border:none;}
a:active  {font-size: 12px; color: #000000; text-decoration: none; border:none;}

a img{ border: none;}

#Activate{ text-align: left; background: #fffbbe; width: 910px; margin: 0px auto; border: 4px solid #fffaaf; margin-top: 95px;}
#Activate .Co{border: 2px solid #ff9c00; padding: 9px; font-size: 14px; line-height: 28px; font-family: Verdana;}
#Activate .Co img{ margin-bottom: -12px; padding-right: 5px;}
#Activate .Co a{ font-size: 14px; color: #ff0012;}
</style>
</head>

<body>
	<div id="Activate">
    <div class="Co" id="d">
    	<img src="<%=basePath%>images/activation/user_check.gif" />
    	<br />
        <center><a href="#">请点击这里登录</a></center>
	</div>
    </div>
</body>
</html>
<script type="text/javascript">
	function msg()
	{
		var msg=<%=request.getParameter("msg") %>;
		var divs=document.getElementById("d");
		switch(msg)
		   {
		   case 0:
		     break
		   case 1:
		     divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />用户不存在或已激活";
		     
		     break
		   case 2:
		   divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />激活失败,请重新申请激活！";
		     break
		   case 3:
		   divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />失效,请在24小时内点击连接！";
		     break
		     case 4:
		     divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />激活成功！";
		     break
		      case 5:
		     divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />用户不存在！";
		     break
		      case 6:
		     divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />密码重置失败！";
		     break
		      case 7:
		     divs.innerHTML="<img src='<%=basePath%>images/activation/user_check.gif' />密码重置成功！";
		     break
		   default:
		   }
		divs.innerHTML+="<center><a href='http://portal.cqupt.edu.cn/'>请点击这里登录</a></center>"
	}
	msg();
</script>

